<template>
    <div class="title-box">
      <div>{{ props.title }}</div>
      <div class="right">
        <slot></slot>
      </div>
    </div>
</template>

<script setup>
import { ref } from 'vue'

const props = defineProps({
  title: {
    type: String,
    default: '默认标题'
  }
})
</script>

<style scoped>
.title-box{
  height: 50px;
  line-height: 50px;
  /* padding: 0; */
  margin: -20px -20px 0 -20px;
  padding: 0 20px;
  font-size: 20px;
  color: #333;
  border-bottom: 1px solid #ebeef5; 
  display: flex;
  justify-content: space-between;
}
.right{
  min-width: 50px;
}
</style>